package mx.edu.itesm.tps.proyecto.pdf;

import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.view.document.AbstractPdfView;

public class CourseViewPdf extends AbstractPdfView {

    protected void buildPdfDocument(Map model, Document doc, PdfWriter writer, HttpServletRequest req, HttpServletResponse resp) throws Exception {
        doc.add(new Paragraph("\nblah wooot"));
    }

    @Override
    public String getContentType() {
        return "application/pdf";
    }
}
